{extend name="index"/}
{block name="title"}
教师管理
{/block}
{block name="content"}
            <table class="table table-hover table-bordered">
                <tr class="info">
                    <th>序号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>邮箱</th>
                    <th>用户名</th>
                    <th>操作</th>
                </tr>
                {volist name="teachers" id="_teacher" key="key"}
                <tr>
                    <td>{$key}</td>
                    <td>{$_teacher->getData('name')}</td>
                    <td>{eq name="_teacher->getData('sex')" value='0'}男{else /}女{/eq}</td>
                    <td>{$_teacher->getData('email')}</td>
                    <td>{$_teacher->getData('username')}</td>
                    <td>
                        <a href="{:url('edit?id=' . $_teacher->getData('id'))}">编辑</a> &nbsp;&nbsp;
                        <a href="{:url('delete?id=' . $_teacher->getData('id'))}">删除</a>
                    </td>
                </tr>
                {/volist}
            </table>
{/block}
{block name="page"}
    {$teachers->render()}
{/block}
        {block name="son"}
            hello
        {/block}